package data.nanjing.expo.models.domain.trade;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 服务商信息
 *
 * @author ChanJi
 * @create 2018-06-08 18:22
 **/
public class ServiceProvider {
    private Integer id;
    /**
     * 用户id
     * user_id
     */
    private Integer userId;

    /**
     * 服务商角色，1:个人，2：企业服务商
     */
    private Integer role;
    /**
     * 标题
     */
    private String title;
    /**
     * 个人简介
     */
    private String resume;

    /**
     * 橱窗图路径
     */
    private String imgUrl;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gmtModify;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getResume() {
        return resume;
    }

    public void setResume(String resume) {
        this.resume = resume;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModify() {
        return gmtModify;
    }

    public void setGmtModify(Date gmtModify) {
        this.gmtModify = gmtModify;
    }

    @Override
    public String toString() {
        return "ServiceProvider{" +
                "id=" + id +
                ", userId=" + userId +
                ", role=" + role +
                ", title='" + title + '\'' +
                ", resume='" + resume + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", gmtCreate=" + gmtCreate +
                ", gmtModify=" + gmtModify +
                '}';
    }
}
